package org.oreilly.javaGoodParts.examples;

public class BattingEvent extends Event {

	enum Result {
		STRIKE_OUT,
		FIELD_OUT,
		BASE_1,
		BASE_2,
		BASE_3,
		BASE_4,
		WALK,
		REACH_ON_ERROR,
		SACRIFICE
	}

	private final Result result; 

	public BattingEvent(Team team, Player player, Result result) {
		super(team, player, Position.BATTER);
		this.result = result;
	}

	public Result getResult() {
		return result;
	}
}
